import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/documentation/keyword/getList',
    method: 'post',
    data: query
  })
}

export function fetchArticle(id) {
  return request({
    url: '/documentation/keyword/getDetail',
    method: 'post',
    data: { id }
  })
}

export function removeKeywordByID(id) {
  return request({
    url: '/documentation/keyword/delete',
    method: 'post',
    data: id
  })
}

export function saveKeyword(data) {
  return request({
    url: '/documentation/keyword/save',
    method: 'post',
    data
  })
}
